home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
DATACH.CST
/
00216_Script_popUpparamcharts
< prev
next >
Wrap
Text File
|
1999-03-07
|
1KB
|
62 lines
property thePopLocv, popSpritev, popNamev, mySpritev, faraway, fieldObjv
global popbgSpritev
on new me
set mySpritev = the spriteNum of me
set popSpritev = mySpritev + 1
set popbgSpritev = mySpritev - 3
set right = the right of sprite (mySpritev - 2)
set top = the top of sprite (mySpritev -2)
set thePopLocv = point(right, top)
set popNamev = "param list"
puppetSprite popSpritev, true
set faraway = point(-1000, -1000)
set the loc of sprite popSpritev = faraway
return me
end
on register me, theObj
set fieldObjv = theObj
end
global paramchartredraw
on mouseDown me
set the member of sprite popSpritev = member popNamev
set the loc of sprite popSpritev = thePopLocv
set the member of sprite popbgSpritev = member popNamev
set the loc of sprite popbgSpritev = thePopLocv
put "popped - " & thepoplocv
updateStage
repeat while the stillDown
checkIfInsidev fieldObjv
end repeat
set the loc of sprite popSpritev = faraway
set the loc of sprite popbgSpritev = faraway
set name = getPlaneNamev(fieldObjv)
if name = "" then
nothing
else
set the text of member "current param" = name
set paramchartredraw = 1
setupchart
-- disSpecs name
end if
set the loc of sprite popSpritev = faraway
set the loc of sprite popbgSpritev = faraway
updateStage
end
on mouseUp me
nothing
end